package com.xs.ahoi.hcxs.service;

import android.content.ComponentName;
import android.content.ServiceConnection;
import android.os.IBinder;

/**
 * author: ahoi
 * date: 2018/8/21 13:38
 * description: 播放服务Connection
 */
public class BGMServiceConnection implements ServiceConnection {

    private BGMService.BGMBinder playControl;

    @Override
    public void onServiceConnected(ComponentName name, IBinder service) {
        playControl = (BGMService.BGMBinder) service;
    }

    @Override
    public void onServiceDisconnected(ComponentName name) {

    }

    public BGMService.BGMBinder getPlayControl(){
        return playControl;
    }
}
